package com.gxuwz.check.service.teacher.impl;

import com.gxuwz.check.dao.teacher.ITeacherDao;
import com.gxuwz.check.model.dto.ClassDto;
import com.gxuwz.check.model.dto.CourseDto;
import com.gxuwz.check.service.teacher.ITeacherService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service("TeacherServiceAdminImpl")
public class TeacherServiceImpl implements ITeacherService {

    @Autowired
    private ITeacherDao teacherDao;

    @Override
    public List<ClassDto> classList(int userId) {
        return teacherDao.classList(userId);
    }

    @Override
    public List<CourseDto> findCourseByTeacherId(int userId) {
        return teacherDao.findCourseByTeacherId(userId);
    }

    @Override
    public void submitChecks(String[] studentIdArray, int classIdSelect, int courseId, int userIdNow) {
        teacherDao.submitChecks(studentIdArray,classIdSelect,courseId,userIdNow);
    }

    @Override
    public Map<String,List> getAbsenceMaxTen(int classIdCharts) {
        return teacherDao.getAbsenceMaxTen(classIdCharts);
    }
}
